package com.bwsoft.admin.domain;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 判断实验室用户是否有权限批量上传，获取报告的数据
 * 
 * @author Li Xi
 */
@Entity
@Table(name = "rp_account_access")
public class AccountAccess implements java.io.Serializable {

	private static final long serialVersionUID = 7883293180186037491L;
	
	@Id
	@Column(name = "id")
	@GenericGenerator(name = "idGenerator", strategy = "identity")
	@GeneratedValue(generator = "idGenerator")
	private Integer id;
	@ManyToOne(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER)
	@JoinColumn(name = "accountid")
	private Account account;
	private Integer reportName;
	private Integer reportNumber;
	private Integer sampleName;
	private Integer scrqph;
	private Boolean delflag;
	private Integer status;
	private Date createTime;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Account getAccount() {
		return account;
	}
	public void setAccount(Account account) {
		this.account = account;
	}
	public Integer getReportName() {
		return reportName;
	}
	public void setReportName(Integer reportName) {
		this.reportName = reportName;
	}
	public Integer getReportNumber() {
		return reportNumber;
	}
	public void setReportNumber(Integer reportNumber) {
		this.reportNumber = reportNumber;
	}
	public Integer getSampleName() {
		return sampleName;
	}
	public void setSampleName(Integer sampleName) {
		this.sampleName = sampleName;
	}
	public Integer getScrqph() {
		return scrqph;
	}
	public void setScrqph(Integer scrqph) {
		this.scrqph = scrqph;
	}
	public Boolean getDelflag() {
		return delflag;
	}
	public void setDelflag(Boolean delflag) {
		this.delflag = delflag;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}